package com.core.zyyz.amc.modules.domain;

import java.util.Date;

import com.core.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.core.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 项目类型维护对象 amc_business_categories
 *
 * @author LiuFushun
 * @date 2024-11-04
 */
public class AmcBusinessCategories extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 业务类别ID */
    private String bizId;

    /** 业务类别代码 */
    @Excel(name = "业务类别代码")
    private String bizCode;

    /** 业务类别名称 */
    @Excel(name = "业务类别名称")
    private String bizName;

    /** 业务类别层级 */
    @Excel(name = "业务类别层级")
    private Long bizLevel;

    /** 业务类别父级ID */
    @Excel(name = "业务类别父级ID")
    private String bizParentId;

    /** 是否启用，1-是，0-否 */
    @Excel(name = "是否启用，1-是，0-否")
    private String ENABLED;

    /** 是否启用，1-是，0-否 */
    @Excel(name = "是否启用，1-是，0-否")
    private String REMARK;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdDate;

    /** 修改人 */
    @Excel(name = "修改人")
    private String lastModifiedBy;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastModifiedDate;

    /** 是否叶子节点 */
    @Excel(name = "是否叶子节点")
    private String isLeaf;

    public void setBizId(String bizId)
    {
        this.bizId = bizId;
    }

    public String getBizId()
    {
        return bizId;
    }
    public void setBizCode(String bizCode)
    {
        this.bizCode = bizCode;
    }

    public String getBizCode()
    {
        return bizCode;
    }
    public void setBizName(String bizName)
    {
        this.bizName = bizName;
    }

    public String getBizName()
    {
        return bizName;
    }
    public void setBizLevel(Long bizLevel)
    {
        this.bizLevel = bizLevel;
    }

    public Long getBizLevel()
    {
        return bizLevel;
    }
    public void setBizParentId(String bizParentId)
    {
        this.bizParentId = bizParentId;
    }

    public String getBizParentId()
    {
        return bizParentId;
    }
    public void setENABLED(String ENABLED)
    {
        this.ENABLED = ENABLED;
    }

    public String getENABLED()
    {
        return ENABLED;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedDate(Date createdDate)
    {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate()
    {
        return createdDate;
    }
    public void setLastModifiedBy(String lastModifiedBy)
    {
        this.lastModifiedBy = lastModifiedBy;
    }

    public String getLastModifiedBy()
    {
        return lastModifiedBy;
    }
    public void setLastModifiedDate(Date lastModifiedDate)
    {
        this.lastModifiedDate = lastModifiedDate;
    }

    public String getREMARK() {
        return REMARK;
    }

    public void setREMARK(String REMARK) {
        this.REMARK = REMARK;
    }

    public Date getLastModifiedDate()
    {
        return lastModifiedDate;
    }
    public void setIsLeaf(String isLeaf)
    {
        this.isLeaf = isLeaf;
    }

    public String getIsLeaf()
    {
        return isLeaf;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("bizId", getBizId())
                .append("bizCode", getBizCode())
                .append("bizName", getBizName())
                .append("bizLevel", getBizLevel())
                .append("bizParentId", getBizParentId())
                .append("ENABLED", getENABLED())
                .append("REMARK", getREMARK())
                .append("createdBy", getCreatedBy())
                .append("createdDate", getCreatedDate())
                .append("lastModifiedBy", getLastModifiedBy())
                .append("lastModifiedDate", getLastModifiedDate())
                .append("isLeaf", getIsLeaf())
                .toString();
    }

    //DTO 用于前端页面展示
    /**
     * 是否禁用
     */
    private Boolean disabled;

    /**
     * 是否选中
     */
    private Boolean checked;

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }
}
